import java.util.concurrent.Executor;
import java.util.concurrent.Executors;

import server.MathServer;


public class ServerMain {
	
	/**
	 * Launches server
	 */
	public void run(){
		MathServer ms = new MathServer();
		Executor ex = Executors.newSingleThreadExecutor();
		ex.execute(ms);
		
		System.out.println("MathServer \"Kovalevskaya\" successfully started and ready to work.");
	}
	
	/**
	 * Server entry point
	 * @param args
	 * @throws InterruptedException 
	 */
	public static void main(String[] args) {
		new ServerMain().run();
	}
}
